package com.example.service;

import com.example.mapper.ProductMapper;
import com.example.model.ProductInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class ProductService {
    @Autowired
    private ProductMapper productMapper;

    public ProductInfo findProductInfo(Integer id) {
        log.info("收到请求, id: " + id);
        return productMapper.selectProductById(id);
    }
}